package cn.heyige.backend.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(description = "收藏操作响应")
public class FavoriteOperationResponse {
    
    @Schema(description = "记录ID", example = "rec_1704097800789")
    private Integer recordId;
    
    @Schema(description = "是否收藏", example = "true")
    private Boolean isFavorite;
    
    @Schema(description = "收藏总数", example = "16")
    private Integer favoriteCount;
    
    @Schema(description = "操作时间", example = "2024-01-01T11:15:00.000Z")
    private LocalDateTime operatedAt;
}